<?php
/**
 * Created by Phpstorm
 * User: 一个猫
 * Date: 2023/11/22
 * Time: 13:48
 */

namespace App\Http\Requests\Api;

class AuthorizationRequest extends FormRequest
{
    public function rules()
    {
        return [
            'username' =>'required',
            'password' =>'required',
        ];
    }

    public function messages()
    {
        return [
            'username.required' => '账号不可为空！',
            'password.required' => '密码不可为空！',
        ];
    }
}
